home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / scripttempl / m68kcoff.sc < prev    next >
Encoding:
Text File  |  1996-07-04  |  929 b   |  42 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. ${LIB_SEARCH_DIRS}
  4. PROVIDE (__stack = 0); 
  5. SECTIONS
  6. {
  7.   .text 0x1000000 : {
  8.     *(.text)
  9.     ${RELOCATING+ etext  =  .;}
  10.     ${CONSTRUCTING+ __CTOR_LIST__ = .;}
  11.     ${CONSTRUCTING+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)}
  12.     ${CONSTRUCTING+ *(.ctors)}
  13.     ${CONSTRUCTING+ LONG(0)}
  14.     ${CONSTRUCTING+ __CTOR_END__ = .;}
  15.     ${CONSTRUCTING+ __DTOR_LIST__ = .;}
  16.     ${CONSTRUCTING+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)}
  17.     ${CONSTRUCTING+ *(.dtors)}
  18.     ${CONSTRUCTING+ LONG(0)}
  19.     ${CONSTRUCTING+ __DTOR_END__ = .;}
  20.   }
  21.   .data : {
  22.     *(.data)
  23.     ${RELOCATING+ edata  =  .};
  24.   }
  25.   .bss : {                     
  26.     ${RELOCATING+ __bss_start = .};
  27.     *(.bss)
  28.     *(COMMON)
  29.      ${RELOCATING+ end = ALIGN(0x8)};
  30.      ${RELOCATING+ _end = ALIGN(0x8)};
  31.   }
  32.   .stab  0 ${RELOCATING+(NOLOAD)} : 
  33.   {
  34.     [ .stab ]
  35.   }
  36.   .stabstr  0 ${RELOCATING+(NOLOAD)} :
  37.   {
  38.     [ .stabstr ]
  39.   }
  40. }
  41. EOF
  42.